package ee.serge.util;

import com.google.gwt.user.client.ui.HTML;

public class Headers {

   public static HTML h1(String text) {
      return new HTML("<h1>" + text + "</h1>");
   }
   
   public static HTML h1(String text, String smallText) {
      return new HTML("<h1>" + text + "<small>" + smallText + "</small></h1>");
   }
   
   public static HTML h2(String text) {
      return new HTML("<h2>" + text + "</h2>");
   }
   
   public static HTML h2(String text, String smallText) {
      return new HTML("<h2>" + text + "<small>" + smallText + "</small></h2>");
   }
   
   public static HTML h3(String text) {
      return new HTML("<h3>" + text + "</h3>");
   }
   
   public static HTML h3(String text, String smallText) {
      return new HTML("<h3>" + text + "<small>" + smallText + "</small></h3>");
   }
   
   public static HTML h4(String text) {
      return new HTML("<h4>" + text + "</h4>");
   }
   
   public static HTML h4(String text, String smallText) {
      return new HTML("<h4>" + text + "<small>" + smallText + "</small></h4>");
   }
   
   public static HTML subheader(String text) {
      HTML html = new HTML("<h2>" + text + "</h2>");
      html.addStyleName("page-header");
      return html;
   }
   
}
